<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../../style.css" type="text/css" media="screen">
<link rel="stylesheet" href="../../../print.css" type="text/css" media="print">
<meta content="MP3,org.outertia.audio.MP3,addDirectory,addFile,addComment" name="keywords">
<title>org.outertia.audio.MP3</title>
</head>
<body>
<script type="text/javascript" language="javascript" src="../../../asdoc.js"></script><script type="text/javascript" language="javascript" src="../../../cookies.js"></script><script type="text/javascript" language="javascript">
<!--
				asdocTitle = 'MP3 - MP3Tools API Documentation';
				var baseRef = '../../../';
				window.onload = configPage;
			--></script>
<table style="display:none" id="titleTable" cellspacing="0" cellpadding="0" class="titleTable">
<tr>
<td align="left" class="titleTableTitle">MP3Tools API Documentation</td><td align="right" class="titleTableTopNav"><a onclick="loadClassListFrame('../../../all-classes.html')" href="../../../package-summary.html">All&nbsp;Packages</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../all-classes.html')" href="../../../class-summary.html">All&nbsp;Classes</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../index-list.html')" href="../../../all-index-A.html">Index</a>&nbsp;|&nbsp;<a href="../../../index.html?org/outertia/audio/MP3.html&amp;org/outertia/audio/class-list.html" id="framesLink1">Frames</a><a onclick="parent.location=document.location" href="" style="display:none" id="noFramesLink1">No&nbsp;Frames</a></td><td rowspan="3" align="right" class="titleTableLogo"><img alt="Adobe Logo" title="Adobe Logo" class="logoImage" src="../../../images/logo.jpg"></td>
</tr>
<tr class="titleTableRow2">
<td align="left" id="subTitle" class="titleTableSubTitle">Class MP3</td><td align="right" id="subNav" class="titleTableSubNav"><a href="#methodSummary">Methods</a></td>
</tr>
<tr class="titleTableRow3">
<td colspan="2">&nbsp;</td>
</tr>
</table>
<script type="text/javascript" language="javascript">
<!--
if (!isEclipse() || window.name != ECLIPSE_FRAME_NAME) {titleBar_setSubTitle("Class MP3"); titleBar_setSubNav(false,false,false,false,false,false,true,false,false,false,false,false,false,false);}
--></script>
<div class="MainContent">
<table cellspacing="0" cellpadding="0" class="classHeaderTable">
<tr>
<td class="classHeaderTableLabel">Package</td><td><a onclick="javascript:loadClassListFrame('class-list.html')" href="package-detail.html">org.outertia.audio</a></td>
</tr>
<tr>
<td class="classHeaderTableLabel">Class</td><td class="classSignature">public class MP3</td>
</tr>
</table>
<p></p>
 The MP3 class represents a MP3 file
, usually generated by the static parse() method<p></p>
<br>
<hr>
</div>

<a name="propertySummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Properties</div>
<table id="summaryTableProperty" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Property</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#frames">frames</a> : Vector.MP3Frame = null<div class="summaryTableDescription">The frames of the MP3</div>
</td><td class="summaryTableOwnerCol">MP3</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#ID3">ID3</a> : ID3v2 = null<div class="summaryTableDescription">The associated ID3 version 2 object</div>
</td><td class="summaryTableOwnerCol">MP3</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#info">info</a> : ID3v1 = null<div class="summaryTableDescription">The associated ID3 version 1 object</div>
</td><td class="summaryTableOwnerCol">MP3</td>
</tr>
</table>
<a name="methodSummary"></a>
<div class="summaryTableTitle">Public Methods</div>
<table id="summaryTableMethod" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Method</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#MP3()">MP3</a>( frames:Vector.MP3Frame = null )</div>
<div class="summaryTableDescription">
  Lets you create an MP3 file object.
  
  </div>
</td><td class="summaryTableOwnerCol">MP3</td>
</tr>

<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#export()">export</a>(): ByteArray</div>
<div class="summaryTableDescription">
  Creates a ByteArray that is actually a SWF file. This SWF file contains a class named "SoundClass" that when instanciated, is the MP3 file. Currently, this is the only way to play an MP3 from the user's file system without uploading it (except AIR).
  
  </div>
</td><td class="summaryTableOwnerCol">MP3</td>
</tr>

<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#parse()">parse</a>( data:ByteArray ): MP3</div>
<div class="summaryTableDescription">
  [static] Takes in the ByteArray of the MP3 file to parse. Returns the parsed MP3 object.
  
  </div>
</td><td class="summaryTableOwnerCol">MP3</td>
</tr>
</table>
</div>
<script type="text/javascript" language="javascript">
<!--
showHideInherited();
--></script>

<div class="MainContent">
<a name="propertyDetail"></a>
<div class="detailSectionHeader">Property detail</div>
<a name="frames"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">frames</td><td class="detailHeaderType">property</td>
</tr>
</table>
<div class="detailBody">
<code>public var frames:Vector.MP3Frame = null</code><p> The content of the MP3 divided into it's individual frames. </p>
</div>

<a name="ID3"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">ID3</td><td class="detailHeaderType">property</td>
</tr>
</table>
<div class="detailBody">
<code>public var ID3:ID3v2 = null</code><p>This is the version 2 ID3 tag. Parse() creates this automatically if an ID3 version 2 tag is found.</p>
</div>

<a name="info"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">info</td><td class="detailHeaderType">property</td>
</tr>
</table>
<div class="detailBody">
<code>public var info:ID3v1 = null</code><p>This is the version 1 ID3 tag. Parse() creates this automatically if an ID3 version 1 tag is found.</p>
</div>


<a name="constructorDetail"></a>
<div class="detailSectionHeader">Constructor detail</div>
<a name="MP3()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">MP3</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">constructor</td>
</tr>
</table>
<div class="detailBody">
<code>public function MP3( frames:Vector.MP3Frame = null )</code><p>
  Lets you create a MP3 file
  
  </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">frames</span>:Vector.MP3Frame</code> (default = <code>null</code>)<code></code> &mdash; Frames of the MP3
  </td>
</tr>
</table>
<br>
<a name="methodDetail"></a>
<div class="detailSectionHeader">Method detail</div>
<a name="export()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">export</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td>
</tr>
</table>
<div class="detailBody">
<code>public function export(): ByteArray</code><p>
  Returns a ByteArray that is a SWF file containing a class named SoundClass. SoundClass extends Sound.
  
  </p>
<br>
<span class="label">Example</span>
<br>  This example shows how to use export() to create a Sound object from a MP3 loaded using FileReference or URLLoader  :
  <div class="listing"><pre>var swf:ByteArray = myMP3.export();<br>var loader:Loader = new Loader();<br>loader.loadBytes(swf);<br> //  ... wait for Event.COMPLETE ... <br>
var MP3Class:Class = Class(loader.contentLoaderInfo.applicationDomain.getDefinition("SoundClass"));<br>var mySound:Sound = new MP3Class();<br>mySound.play();
</pre></div>
  <p></p>
</div>

<a name="parse()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">parse</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td>
</tr>
</table>
<div class="detailBody">
<code>public static function parse( data:ByteArray ): MP3</code><p>
  Takes in a ByteArray of the MP3 file to parse.
  
  </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">data</span>:ByteArray</code> &mdash; ByteArray of a loaded MP3
  </td>
</tr>
</table>
<br>
<span class="label">Example</span>
<br>  This example shows how to parse an MP3  :
  <div class="listing"><pre>var myMp3:MP3;<br>var url:URLLoader = new URLLoader( new URLRequest("myMusic.mp3") );<br>url.addEventListener(Event.COMPLETE, function(ev){ myMp3 = MP3.parse(ev.target.data);} );</pre></div>
  <p></p>
</div>
<br>
<br>
<hr>
<br>
<p></p>
<center class="copyright">Jordan Williams - http://www.quixological.com</center>
</div>
</body>
</html>
<!--Jordan Williams - http://www.quixological.com/mp3tools-->
